package day4.作业1026.作业04;

public class ZhanPlane extends Plane {
    private int dantoushu;//弹头数

    public ZhanPlane() {
    }

    public ZhanPlane(int weight, int height, int dantoushu) {
        super(weight, height);
        this.dantoushu = dantoushu;
    }

    public int getDantoushu() {
        return dantoushu;
    }

    public void setDantoushu(int dantoushu) {
        this.dantoushu = dantoushu;
    }

    @Override
    public void fly() {
        System.out.println("战斗机起飞");
    }

    @Override
    public void jiashu() {
        System.out.println("战斗机加速");
    }

    @Override
    public void jiangluo() {
        System.out.println("战斗机降落");
    }
    public void fire(){
        System.out.println("战斗机发射导弹，敌机被击落");
    }
    public void panxuan(){
        System.out.println("战斗机盘旋");
    }

    @Override
    public void show() {
        super.show();
        System.out.println("弹头数"+dantoushu);
    }
}
